export default {
    state:{
        cartData:[]
    },
    getters:{
        cartNumber(state){
            return state.cartData.length
        }
    },
    mutations:{
        initCartData(state,cartData){
            state.cartData = cartData
        },
        clearCartData(state){
            state.cartData = []
        }
    }
}